<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class GoodsImage extends Model
{
    protected $table="goods_img";
    protected $primaryKey='false';
    protected $fillable=[
        'type','pic_id','goods_id'
    ];
    public function my_pic_path()
    {
        return $this->hasOne('App\Models\Pictures','pic_id','pic_id');
    }
}
